import { fetchToken, fetch } from '@/utils/fetch'
//    ============租户管理-列表============
// 'http://49.4.7.72/eolinker/server/index.php?g=Web&c=Mock&o=simple&projectID=3&uri=list',
var url = '/pzt';
export function list(data) {
  return fetchToken({
	url: `/sysinfo-service/tenants`,
	method: 'get',
	params: data
  })
}

//    ============租户管理-修改============
export function update(data,ids) {
  return fetchToken({
	url: `/sysinfo-service/tenant/${ids}`,
	method: 'put',
	data
  }, '修改租户成功')
}

//    ============租户管理-新增============
export function add(data) {
  return fetchToken({
	url: `/sysinfo-service/tenant`,
	method: 'post',
	data
  }, '新增租户成功')
}

//    ============租户管理-查看============
export function look(data) {
  return fetchToken({
	url: `/sysinfo-service/tenant`,
	method: 'get',
	params: data
  })
}

//    ============获取地址级联接口============
export function address(data) {
  return fetchToken({
	url: `/base-data-center/area`,
	method: 'get',
	params: data
  })
}
